﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserArea.master" AutoEventWireup="true" CodeBehind="Persons.aspx.cs" Inherits="UserInterfaceLayer.User.Persons" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headUser" runat="server">
    <link href="../CSS/ListView.css" rel="stylesheet" />
    <style>
        .PersonListViewItem
        {
            min-width: 250px;
            height: 75px;
            padding: 5px;
            margin: 5px;
            display: inline-table;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentUser" runat="server">
    <div style="width: 500px; margin: 10px auto auto auto; border: 1px solid black;">
        <div class="header_a">جستجو</div>
        <table style="padding: 20px 0px 20px;" class="font_medium width_fill">
            <tr>
                <td style="width: 220px;" class="ltr">
                    <label for="contentSite_contentUser_txtFirstName">نام</label>
                </td>
                <td style="padding: 5px 5px;">
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="font_medium textbox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ltr">
                    <label for="contentSite_contentUser_txtLastName">نام خانوادگی</label>
                </td>
                <td style="padding: 5px 5px;">
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="font_medium textbox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ltr">
                    <label for="contentSite_contentUser_txtNationalNumber">کد ملی</label>
                </td>
                <td style="padding: 5px 5px;">
                    <asp:TextBox ID="txtNationalNumber" runat="server" CssClass="font_medium ltr textbox"></asp:TextBox>
                </td>
            </tr>
        </table>
        <hr />
        <div style="margin: 20px;" class="ltr">
            <asp:Button ID="btnSearch" runat="server" Text="" CssClass="button_search_48" OnClick="btnSearch_Click" />
        </div>
    </div>
    <a href="Person.aspx?PersonID=add">
        <div style="width: 250px; height: 50px; display: inline-block; border-radius: 10px;" class="border_black bgcolor_cf">
            <span class="add_32 messagebox1_item_icon_32"></span>
            <span style="line-height: 50px;" class="font_2xlarge">شخص جدید...</span>
        </div>
    </a>
    <div style="margin: 20px 40px 0px 40px;" class="bgcolor_cf border_black">
        <asp:ListView ID="lvPersons" runat="server">
            <EmptyDataTemplate>
                <div class="messagebox1_holder">
                    <div class="messagebox1_failure">
                        <span class="failure_16 messagebox1_item_icon_16"></span>
                        <span>هیچ شخصی پیدا نشد.</span>
                    </div>
                </div>
            </EmptyDataTemplate>
            <ItemTemplate>
                <a href='Person.aspx?PersonID=<%# Eval("PersonID") %>'>
                    <div style="background-color: <%# Eval("BackColor") %>;" class="PersonListViewItem border_black">
                        <span class="font_medium">نام:</span>
                        <span class="font_2xlarge">
                            <%# Eval("FirstName") %> <%# Eval("LastName") %>
                        </span>
                    </div>
                </a>
            </ItemTemplate>
            <LayoutTemplate>
                <div style="margin: 10px 5px 10px 5px;" class="font_medium">
                    <div id="itemPlaceholder" runat="server">
                    </div>
                </div>
            </LayoutTemplate>
        </asp:ListView>
    </div>
</asp:Content>
